/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('ims_crl_tpshop_express_track', {
    id: {
      type: DataTypes.BIGINT,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    type: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '1'
    },
    status: {
      type: DataTypes.STRING(10),
      allowNull: false,
      defaultValue: 'polling'
    },
    message: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    order_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    },
    com_code: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    com_name: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    nu: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ''
    },
    ischeck: {
      type: DataTypes.INTEGER(4),
      allowNull: false,
      defaultValue: '0'
    },
    track: {
      type: DataTypes.TEXT,
      allowNull: false
    }
  }, {
    tableName: 'ims_crl_tpshop_express_track'
  });

  Model.associate = function() {

  }

  return Model;
};
